<template>
  <div>
    <el-card class="box-card">
      <el-row>
        <div class="block">
          <el-avatar :size="100" :src="circleUrl"></el-avatar>
        </div>
      </el-row>
      <p/>

      <el-row>
        用户名:<span>{{userName}}</span>
      </el-row>
      <p/>

      <el-row>
        用户密码:<span>{{userPwd}}</span>
      </el-row>
    </el-card>

  </div>
</template>

<script>
export default {
  name: "showUser",
  data() {
    return {
      circleUrl: "",
      listData: [],
      userName: '',
      userPwd: ''
    }
  },
  mounted() {
    let name = this.$route.query.name;
    let pwd = this.$route.query.pwd;
    console.log("我进来了")
    this.$axios.get("tm/tianmao/getUser/" +name + "/" + pwd).then(
        r => {
          this.listData = r.data;
          this.ssssss()
        })
  },
  methods:{
    ssssss(){
      console.log(this.listData[0]+"   "+this.listData[1]+"   "+"tm/img"+this.listData[2])
      this.userName=this.listData[0]
      this.userPwd=this.listData[1]
      this.circleUrl="tm/img/"+this.listData[2]
    }
  }
}
</script>

<style scoped>

</style>